<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Authing</title>
</head>
<body>
<script>
    var auth = JSON.parse(window.decodeURIComponent(window.atob(location.search.substring(1))));
    localStorage.setItem("user", JSON.stringify({
        name: auth.userName,
        indexPath: auth.indexPath
    }));
    localStorage.setItem("_token", JSON.stringify({
        token: auth.token,
        account: auth.userName,
        indexPath: auth.indexPath
    }));
    window.location = "./index.html";
</script>
</body>
</html>
